package com.bupt.kgplatform.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.bupt.kgplatform.entity.pojo.OperateLog;

import java.util.List;

/**
 * ClassName:BackstageMapper
 * Package:com.example.blackjavaweb.mapper
 * Description:
 *
 * @Author QIQI_1999
 * @Creat 2023/9/18 16:11
 * @Version 1.0
 */
@Mapper
public interface BackstageMapper {

    @Select("select id, operate_user, operate_time, class_name, method_name, method_params, return_value, cost_time from operate_log limit #{begin}, #{num}")
    List<OperateLog> getLogInfo(int begin, int num);


    @Select("select count(*) from operate_log")
    Integer getLogSum();

}
